/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test.classTest;

import org.jasypt.util.text.BasicTextEncryptor;

/**
 *
 * @author vannh
 */
public class Encrypt {
    static final String SALT = "3P@q2b4h0@xlgBKA4$wEMti0GL&0BRf#e5C";
    public static void main(String[] args){
        BasicTextEncryptor ba = new BasicTextEncryptor();
        ba.setPassword(SALT);
        
        String username = ba.encrypt("root");
        String pass = ba.encrypt("123456a@");
        String url = ba.encrypt("jdbc:mysql://localhost:3306/health?zeroDateTimeBehavior=convertToNull");
        
        System.out.println(username + "   " + pass + "   " + url);
    }
}
